package com.mayflygeek.mayflyask.framework.webmvc.message;

import java.util.Map;

/**
 * @author 虫虫
 * @team 蜉蝣极客
 * @link www.mayflygeek.com
 * @Emial chongchong@mayflygeek.com
 * 
 */
public interface Flash {
	String FLASH_KEY = Flash.class.getName();
	String MESSAGE_KEY = "message";

	void setAttribute(String key, Object value);

	Object getAttribute(String key);

	Map<String, Object> getAttributes();

	void setMessage(Message message);

	void setInfoMessage(String info);

	void setWarningMessage(String warning);

	void setErrorMessage(String error);

	void setSuccessMessage(String success);

	Message getMessage();

	boolean hasMessage();
}
